from singleton import singleton

@singleton
class IO():
    ExternalInputFunction = input
    FB_Enabled = False

    def print(self, text, ending='\n'):
        if not self.FB_Enabled:
            print(text, end=ending)
    def input(self, text):
        return self.ExternalInputFunction()